class Solution
{
public:
    int crackNumber(int ciphertext)
    {
        if (ciphertext < 10) return 1;
        return (ciphertext % 100 < 10 || ciphertext % 100 > 25) ? crackNumber(ciphertext / 10) : crackNumber(ciphertext / 10) + crackNumber(ciphertext / 100);
    }
};